<!--
 * @Description: 你的代码我的心
 * @Author: GGB
 * @Date: 2021-12-21 14:39:03
 * @LastEditors: GGB
 * @LastEditTime: 2022-01-04 17:34:49
-->
<template>
  <div>
    <BasicTable @register="registerTable" />
  </div>
</template>
<script lang="ts" setup>
  import { BasicTable, useTable, FetchSetting } from '/@/components/Table';
  // schama
  import { columns, searchFormSchema } from './verify.data';
  import { getVerifyList } from '/@/api/order/verify';

  const [registerTable] = useTable({
    title: '订单列表',
    api: getVerifyList,
    fetchSetting: {
      sizeField: 'list.per_page',
      // // 请求接口当前页数
      pageField: 'list.current_page',
      // 请求结果列表字段  支持 a.b.c
      listField: 'list.data',
      // 请求结果总数字段  支持 a.b.c
      totalField: 'list.total',
    } as FetchSetting,
    columns,
    formConfig: {
      labelWidth: 70,
      schemas: searchFormSchema,
      alwaysShowLines: 0,
    },
    useSearchForm: true,
    showTableSetting: true,
    bordered: true,
    showIndexColumn: false,
  });
</script>
